<template>
  <div class="login">
    <div class="login">
      <div class="login-form">
        <div class="login-header">
          <img src alt>
          <p>后台管理</p>
        </div>
        <a-input placeholder="请输入用户名" class="login-input"/>
        <a-input placeholder="请输入密码" class="login-input"/>
        <a-button type="primary" block class="login-button">登录</a-button>
        <div class="login-check">
          <a-checkbox @change="onChange">记住</a-checkbox>
          <a href="javascript:;" style="float: right;color: #3C8DBC;font-size: 14px">Register</a>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Login",
  data() {
    return {};
  },
  created() {},
  methods: {
    onChange(e) {
      console.log(`checked = ${e.target.checked}`);
    }
  }
};
</script>

<style lang="stylus" scoped>
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: #4498c4;

  .login-form {
    width: 375px;
    height: 400px;
    padding: 30px;
    background-color: white;
    text-align: left;
    border-radius: 4px;
    position: relative;
    margin-left: 0;
    margin-right: 0;
    zoom: 1;
    display: block;
    .login-input{
        margin-top 20px;
    }
    .login-button{
        margin-top 20px;    
    }
    .login-check{
        margin-top 20px
    }
    .login-header {
      text-align: center;
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 20px;
    }
  }
}
</style>
